import Vue from 'vue'
import Vuex from 'vuex'

import state from './state.js'
import actions from './actions.js'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		...state
	},
	actions: {
		...actions
	},
	mutations: {
		showLoading(state, show) {
			state.loading = show;
		}
	},
	
})

export default store
